package com.sky.mapper.common;

import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DishFlavorMapper {
    /**
     * 批量添加菜品的口味数据
     * @param flavors
     */
    void batchInert(List<DishFlavor> flavors);

    /**
     * 根据菜品的id删除口味的数据
     * @param ids
     */
    void deleteByIds(List<Long> ids);

    @Select("select * from dish_flavor where dish_id = #{id}")
    List<DishFlavor> getByDishId(Long id);
}
